/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package ua.yandex.skipass;

import java.util.Scanner;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;

/**
 *
 * @author Brothers
 */
public class Main {

    static int THREE = 3;
    static int TWO = 2;
    static int ONE = 1;

    public static void main(String[] args) {
        AccountingSystem base = new AccountingSystem();
        base.addToTurn(base.createTurnstile());
        Calendar data = new GregorianCalendar();
        data.clear();
        Date temporaryDate = new Date();
        data.setTime(temporaryDate);
        base.setDate(data);
        int k = 0;
        Enums.Week temp = Enums.Week.None;
        Scanner in = new Scanner(System.in);
        while (k != 0) {
            System.out.println("1 - None,2 - Bdn,3 - Hld,0 - exit");
            k = in.nextInt();
            if (k == ONE) {
                temp = Enums.Week.None;
            } else if (k == TWO) {
                temp = Enums.Week.Bdn;
            } else if (k == THREE) {
                temp = Enums.Week.Hld;
            }
            base.createSkiPass(temp);
        }
        in.close();
    }
}
